#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class FileItem : Business.BusinessBase<FileItem, int>
	{
		#region Fields and Properties

		private String fileStates = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FileStates
		{
			get { return fileStates; }
			set
			{
				if (value != fileStates)
				{
					MarkChanged("FileStates");
					fileStates = value;
				}
			}
		}

		private String fileMaker = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FileMaker
		{
			get { return fileMaker; }
			set
			{
				if (value != fileMaker)
				{
					MarkChanged("FileMaker");
					fileMaker = value;
				}
			}
		}

		private String fileCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FileCode
		{
			get { return fileCode; }
			set
			{
				if (value != fileCode)
				{
					MarkChanged("FileCode");
					fileCode = value;
				}
			}
		}

		private String itemAddress = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ItemAddress
		{
			get { return itemAddress; }
			set
			{
				if (value != itemAddress)
				{
					MarkChanged("ItemAddress");
					itemAddress = value;
				}
			}
		}

		private String itemName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ItemName
		{
			get { return itemName; }
			set
			{
				if (value != itemName)
				{
					MarkChanged("ItemName");
					itemName = value;
				}
			}
		}

		private String itemCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ItemCate
		{
			get { return itemCate; }
			set
			{
				if (value != itemCate)
				{
					MarkChanged("ItemCate");
					itemCate = value;
				}
			}
		}

		private String fileItemCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FileItemCode
		{
			get { return fileItemCode; }
			set
			{
				if (value != fileItemCode)
				{
					MarkChanged("FileItemCode");
					fileItemCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public FileItem()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override FileItem DataSelect(int id)
		{
			return Services.DALService.FileItemService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.FileItemService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.FileItemService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.FileItemService.Delete(this);
		}

		#endregion Base overrides
	}
}
